package com.oocl.euc.entity;
 
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import com.fasterxml.jackson.annotation.JsonBackReference;

//@Entity
//@Table(name="tmerchant")
@Document(collection="merchant")
public class Merchant {
	@Id
	private String mid;
	private String account;
	private String password;
	public Merchant() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Merchant(String mid, String account, String password) {
		super();
		this.mid = mid;
		this.account = account;
		this.password = password;
	}
	public String getMid() {
		return mid;
	}
	public void setMid(String mid) {
		this.mid = mid;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	
}
